var app = getApp();
const navigationBarHeight = (getApp().statusBarHeight + 44) + 'px'

Page({
  data: {
    navigationBarTitle: '',
    navigationBarHeight,
    statusBarHeight: app.statusBarHeight + 'px',
    tabbar: {},
    isIphoneX: app.globalData.isIphoneX ? true : false,
    winHeight: 0,
    winWidth: 0,
  },

  //
  onLoad: function (options) {
    wx.hideTabBar();
    app.editTabbar();
    var that = this; 

    wx.getSystemInfo({
      success: function (res) {
        that.setData({
          systemInfo: res,
          winWidth: res.windowWidth,
          winHeight: res.windowHeight,
          itemWidth: res.windowWidth * 0.4,
        });
      }
    });
    wx.hideShareMenu();

  },


  onReady: function () { },
  onShow: function () {
  },
  onHide: function () { },
  onUnload: function () { },

  backhome: function () {
    var that = this;
    wx.navigateBack({
      delta: 1
    })
  },

})